{extend name="v1/layout/base"}
{block name="content"}
<style>
  .layui_xzwidth {
    width: 100% !important;
    margin-left: 0 !important;

  }

  .xz_row{

    display:flex;
    align-items:center;
    justify-content: center;
    float: none;
    margin: 0 auto;

  }
  .xz_row button{
    margin-left:10px;
  }

  .xz_row2{
    display:flex;
    align-items:center;
    justify-content: center;
    float: none;
    margin: 20px auto 0 auto;
  }
</style>
<div class="layui-row layui-col-space15">
  <div class="layui-col-md12">
    <form class="layui-card-body layui-form layui-form-pane">
      <!-- 需要购买的物品 -->
      <div class="layui-row layui-col-space10 layui-form-item">
        <div class="layui-col-lg8" style="color:#000;text-align: center;">
          <hr class="layui-border-red">请上传物流信息表
          <hr class="layui-border-red">
        </div>
      </div>

      <div class="layui-row">
        <!-- <div class="layui-col-xs2">&nbsp;</div> -->
        <div class="layui-col-xs5 xk-upload-file xz_row">
          <input type="text" name="fileurl" class="layui-input" value="">
          <button type="button" class="layui-btn layui-btn-primary" id="xk-fileUpload">点击回传</button>
        </div>
        <!-- <div class="layui-col-xs5">&nbsp;</div> -->
      </div>


      <!-- 底部操作按钮 -->
      <div class="layui-row">
        <!-- <div class="layui-col-xs2">&nbsp;</div> -->
        <div class="layui-col-xs5 xz_row2">
          <button type="button" class="layui-btn layui-btn-primary layui-btn-radius" id="backList"><i class="layui-icon">&#xe65c;</i>返回列表</button>
          <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit lay-filter="delivery"><i class="layui-icon">&#xe609;</i>执行回传</button>
        </div>
        <!-- <div class="layui-col-xs5">&nbsp;</div> -->
      </div>
      <!-- 底部操作按钮结束 -->
    </form>
  </div>
</div>
{/block}
{block name="myScript"}
<script>
  layui.use(['form'], function() {
    var form = layui.form,
      layer = layui.layer,
      $ = layui.$;
    form.on('submit(delivery)', function(data) {
      var data =data.field;
        var url = "/{:config("manage.manage_name")}/{:config("manage.version")}/Order/doImport";
      https(url, data, 'post', 1, '正在执行信息回传').then(res => {
        xkMsg(res.result_msg);
      })
    })
  });
</script>
{/block}
